package com.ideaaedi.zoo.commonbase.constant;

/**
 * 常量类
 *
 * @author <font size = "20" color = "#3CAA3C"><a href="https://gitee.com/JustryDeng">JustryDeng</a></font> <img src="https://gitee.com/JustryDeng/shared-files/raw/master/JustryDeng/avatar.jpg" />
 * @since 1.0.0
 */
public interface ZooConstant {
    
    /** 日志追踪id */
    String TRACE_ID = "traceId";
    
    /** 带业务信息的日志追踪id。既：traceId + 业务信息 = traceXd */
    String TRACE_XD = "traceXd";
    
    /** 当前登录用户id */
    String CURR_USER_ID = "__ACROSS_SERVICE_ZOO_CURR_USER_ID__";
    
    /** 当前登录用户的租户域信息 */
    String CURR_TENANT_SCOPE = "__ACROSS_SERVICE_ZOO_CURR_TENANT_SCOPE__";
    
    /** 最新的审计日志id */
    String LATEST_AUDIT_LOG_ID = "__LATEST_AUDIT_LOG_ID__";

    /** 是否时来自内部微服务的请求 */
    String FROM_INNER_MICROSERVICE_REQUEST = "__FROM_INNER_MICROSERVICE_REQUEST__";
    
    /**
     * 空字符串
     */
    String EMPTY = "";
    
    /**
     * 租户 列名
     */
    String TENANT_COLUMN_NAME = "tenant";
    
    /**
     * 租户 字段名
     */
    String TENANT_PROPERTY_NAME = "tenant";
    
    /**
     * mysql防转义符
     */
    String MYSQL_ANTI_ESCAPE = "`";
    
}
